﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M4 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {

            migrationBuilder.AddColumn<string>(
                name: "OrderNo",
                table: "t_StackingStorage",
                type: "varchar(100)",
                unicode: false,
                maxLength: 100,
                nullable: false,
                defaultValue: "");

            migrationBuilder.AlterColumn<int>(
                name: "RoutewayId",
                table: "t_Shelf",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "巷道Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "巷道Id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "OrderNo",
                table: "t_StackingStorage");

            migrationBuilder.AlterColumn<int>(
                name: "RoutewayId",
                table: "t_Shelf",
                type: "int",
                nullable: true,
                comment: "巷道Id",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "巷道Id");

            migrationBuilder.AddColumn<string>(
                name: "BusinessGroupId2",
                table: "t_Instruct",
                type: "varchar(32)",
                unicode: false,
                maxLength: 32,
                nullable: true,
                comment: "海康要求任务Id32位");
        }
    }
}
